package com.shadow.mall.order.remote;

import com.shadow.mall.common.core.JsonResult;
import com.shadow.mall.product.domain.dto.ProductSkuDTO;
import com.shadow.mall.product.domain.query.GetProductSkuQuery;
import com.shadow.mall.product.domain.query.ListProductSkuQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient("shadow-mall-product")
public interface ProductService {

    @RequestMapping("/product/listProductSku")
    JsonResult<List<ProductSkuDTO>> listProductSku(ListProductSkuQuery productSkuQuery);


    @RequestMapping("/product/getProductSku")
    JsonResult<ProductSkuDTO> getProductSku( GetProductSkuQuery productSkuQuery);
}
